//
//  AppDelegate.m
//  滑动动画
//
//  Created by 8b410-2 on 16/12/10.
//  Copyright © 2016年 abb. All rights reserved.
//

#import "AppDelegate.h"
#import "ViewController.h"
#import "AbbNavigationController.h"
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    self.window =[[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    [self.window setBackgroundColor:[UIColor whiteColor]];
    [self.window setRootViewController:[self navigationControllerWithViewController:[[ViewController alloc] init]]];
    [self.window makeKeyAndVisible];
    return YES;
}

- (UINavigationController *)navigationControllerWithViewController:(UIViewController *)viewController {
    AbbNavigationController *nav = [[AbbNavigationController alloc] initWithRootViewController:viewController];
    return nav;
}

@end
